function [elements,processInfo] = FinalizeSolutionStep...
    (elements,model,processInfo)
ne = model.countElements();
for i=1:ne
    e = model.getElement(i-1);
    ng = e.getNumGaussPoint();
    for j=1:ng
        elements(i).kappa_old_old(j) = ...
            elements(i).kappa_old(j);
        elements(i).kappa_old(j) = ...
            elements(i).kappa(j);
    end
end
if strcmp(processInfo.integrationType,'implex')
    processInfo.Dt_old = processInfo.Dt;
end
end
